package com.example.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.domain.po.BookEntity;

import java.util.List;

public interface BookService extends IService<BookEntity> {
    List<BookEntity> getBooksByAuthor(String author);
    List<BookEntity> getBooksByBookType(String bookType);
    BookEntity getBookByBookName(String bookName);
    BookEntity addBook(BookEntity bookEntity);

    boolean updateBook(BookEntity bookEntity);
    int deleteBook(BookEntity bookEntity);
    List<BookEntity> getBooks();
    List<BookEntity> getBooksByUserName(String username);

    List<BookEntity> getNotBorrowedBooks();
}
